//
//  LookTableViewCell.m
//  美食百科
//
//  Created by dllo on 16/1/28.
//  Copyright © 2016年 doll. All rights reserved.
//

#import "LookTableViewCell.h"
@interface LookTableViewCell()
@property(nonatomic,retain)UILabel *label;
@end
@implementation LookTableViewCell
- (void)dealloc
{
    [_label release];
   
    [super dealloc];
}

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        self.label = [[UILabel alloc]init];
        self.label.text = @"查看更多营养信息";
        self.label.textColor = self.color;
        self.label.font = [UIFont systemFontOfSize:14];
        self.label.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:self.label];
        [_label release];
        
        
    }
    
    return self;
}



-(void)layoutSubviews
{
    [super layoutSubviews];
    
    self.label.frame =CGRectMake(10, 0, self.bounds.size.width-20, self.bounds.size.height);
    }

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
